package net.wexoo.group_cost_calculator.enitities;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = Person.TABLE_NAME)
public class Person extends DatabaseEntity {

   public static final String TABLE_NAME = "person";
   public static final String NAME_COLUMN = "name";
   public static final String PAYED_COSTS_COLUMN = "payed_costs";

   @DatabaseField(columnName = NAME_COLUMN)
   private String name;
   @DatabaseField(columnName = PAYED_COSTS_COLUMN)
   private Double payedCosts;

   public Person() {

   }

   public Person(String name, Double payedCosts) {
      this.name = name;
      this.payedCosts = payedCosts;
   }

   public String getName() {
      return name;
   }

   public Double getPayedCosts() {
      return payedCosts;
   }

   public void setName(String name) {
      this.name = name;
   }

   public void setPayedCosts(Double payedCosts) {
      this.payedCosts = payedCosts;
   }
}